<script setup lang="ts">
import { ref,onMounted,onUpdated } from 'vue'
let isShow = ref(false);

let showView=()=>{

}

onMounted(()=>{
    if(isShow.value==true){
        showView();
    }
})

onUpdated(()=>{
    if(isShow.value==true){
        showView();
    }
})

</script>

<template>
    <div class="hide"><input type="button" :value="`${isShow ? 'hide' : 'show'} yjs 0`" @click="isShow = !isShow"></div>
    <div v-if="isShow"></div>
</template>

<style scoped></style>